import { LAYOUT } from '@/router/constant'

import type { AppRouteModule } from '@/router/types'

const flow: AppRouteModule = {
    path: import.meta.env.VITE_PUBLIC_PATH + '/flow',
    name: 'flow',
    component: LAYOUT,
    meta: {
        isLayout: true,
        icon: 'home-outlined',
        hideMenu: true,
        title: '流程管理'
    },
    redirect: import.meta.env.VITE_PUBLIC_PATH + '/flow',
    children: [
        {
            path: import.meta.env.VITE_PUBLIC_PATH + '/flow',
            name: 'FLOW',
            component: () => import('@/views/system/flow/list.vue'),
            meta: {
                title: '流程管理',
                icon: 'home-outlined',
                hideMenu: true
            }
        },
        {
            path: import.meta.env.VITE_PUBLIC_PATH + '/flow/operation',
            name: 'FLOW_OPERATION',
            component: () => import('@/views/system/flow/operation.vue'),
            meta: {
                title: '流程设计',
                icon: 'home-outlined',
                hideMenu: true
            }
        }
    ]
}

export default flow
